<!--
 * @Author: byron
 * @Date: 2021-09-23 14:20:35
 * @LastEditTime: 2021-10-01 04:31:18
-->
<template>
    <div id="app">
        <Layout />
    </div>
</template>

<script>
import Layout from '@/layout'
import '@/style/themes/theme-default.js'
export default {
    data() {
        return {}
    },
    name: 'App',
    components: {
        Layout,
    },
    created() {
        this.$loadTheme()
    },
}
</script>

<style lang="scss">
#app {
    overflow: auto;
    font-size: 14px;
    height: 100%;
    background-color: var(--body-bgcolor);
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-weight: 400;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: var(--font-color);
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    list-style: none;
    box-sizing: border-box;
}

/* // 滚动条 */

// 外层轨道
::-webkit-scrollbar-track {
    background-color: var(--body-bgcolor);
}

// 滚动条整体部分，可以设置宽度啥的
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: var(--font-title-color);
}

// 滚动的滑块
::-webkit-scrollbar-thumb {
    background-color: var(--font-title-color);
}

// 选中文字的颜色
p::selection,
span::selection,
img::selection,
div::selection,
li::selection {
    background: var(--font-title-color);
    color: #fff;
}

p::-moz-selection {
    background: #ccc;
    color: #ff645d;
}

p::-webkit-selection {
    background: #ccc;
    color: #ff645d;
}

img {
    user-select: 'none';
    -webkit-user-drag: none;
}
</style>
